package com.wqr.it.ecwdr.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wqr.it.ecwdr.service.ProductService;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/product")
public class ProductContraller {
	@Autowired
	private ProductService productService;


	@ApiOperation(value = "获取产品跟卖Token", notes = "获取产品跟卖Token")
	@RequestMapping(value="/ItemFollowToken", method = RequestMethod.GET)
	public int refreshStockToken() {
		return productService.findProductItemFollowToken();
	}

	@ApiOperation(value = "获取产品Token", notes = "获取产品Token")
	@RequestMapping(value="/ItemToken", method = RequestMethod.GET)
	public int findStockToken() {
		return productService.findProductItemToken();
	}
}
